package day14_junit_reflect_annotation_proxy.com.itheima.d3_annotation;

import org.junit.Test;

public class Demo3_Annotation {
    @Test
    public void parseClass(){
        Class<Demo> c = Demo.class;
        if (c.isAnnotationPresent(MyTest4.class)){
            MyTest4 myTest4 = c.getAnnotation(MyTest4.class);
            System.out.println("myTest4.value() = " + myTest4.value());
            System.out.println("myTest4.aaa() = " + myTest4.aaa());
            System.out.println("myTest4.bbb() = " + myTest4.bbb());
        }
    }
}
@MyTest4(value = "Java入门", bbb = {"1", "2", "3"})
class Demo{
    @MyTest4(value = "100", aaa = 1000, bbb = {"1", "2", "3"})
    public void test1(){

    }
}
